package com.nondo.dean.product.mapper;

import com.nondo.dean.product.domain.ProductSeries;
import com.nondo.dean.product.domain.ProductSeriesExample;
import java.util.List;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface ProductSeriesMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table product_series
     *
     * @mbg.generated Mon Jun 25 11:55:32 CST 2018
     */
    @SelectProvider(type=ProductSeriesSqlProvider.class, method="countByExample")
    long countByExample(ProductSeriesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table product_series
     *
     * @mbg.generated Mon Jun 25 11:55:32 CST 2018
     */
    @DeleteProvider(type=ProductSeriesSqlProvider.class, method="deleteByExample")
    int deleteByExample(ProductSeriesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table product_series
     *
     * @mbg.generated Mon Jun 25 11:55:32 CST 2018
     */
    @Insert({
        "insert into product_series (product_id, product_code, ",
        "series_id, create_by, ",
        "create_date, update_by, ",
        "update_date, remarks, ",
        "del_flag)",
        "values (#{productId,jdbcType=INTEGER}, #{productCode,jdbcType=INTEGER}, ",
        "#{seriesId,jdbcType=INTEGER}, #{createBy,jdbcType=BIGINT}, ",
        "#{createDate,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=BIGINT}, ",
        "#{updateDate,jdbcType=TIMESTAMP}, #{remarks,jdbcType=VARCHAR}, ",
        "#{delFlag,jdbcType=CHAR})"
    })
    int insert(ProductSeries record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table product_series
     *
     * @mbg.generated Mon Jun 25 11:55:32 CST 2018
     */
    @InsertProvider(type=ProductSeriesSqlProvider.class, method="insertSelective")
    int insertSelective(ProductSeries record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table product_series
     *
     * @mbg.generated Mon Jun 25 11:55:32 CST 2018
     */
    @SelectProvider(type=ProductSeriesSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="product_id", property="productId", jdbcType=JdbcType.INTEGER),
        @Result(column="product_code", property="productCode", jdbcType=JdbcType.INTEGER),
        @Result(column="series_id", property="seriesId", jdbcType=JdbcType.INTEGER),
        @Result(column="create_by", property="createBy", jdbcType=JdbcType.BIGINT),
        @Result(column="create_date", property="createDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_by", property="updateBy", jdbcType=JdbcType.BIGINT),
        @Result(column="update_date", property="updateDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="remarks", property="remarks", jdbcType=JdbcType.VARCHAR),
        @Result(column="del_flag", property="delFlag", jdbcType=JdbcType.CHAR)
    })
    List<ProductSeries> selectByExampleWithRowbounds(ProductSeriesExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table product_series
     *
     * @mbg.generated Mon Jun 25 11:55:32 CST 2018
     */
    @SelectProvider(type=ProductSeriesSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="product_id", property="productId", jdbcType=JdbcType.INTEGER),
        @Result(column="product_code", property="productCode", jdbcType=JdbcType.INTEGER),
        @Result(column="series_id", property="seriesId", jdbcType=JdbcType.INTEGER),
        @Result(column="create_by", property="createBy", jdbcType=JdbcType.BIGINT),
        @Result(column="create_date", property="createDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_by", property="updateBy", jdbcType=JdbcType.BIGINT),
        @Result(column="update_date", property="updateDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="remarks", property="remarks", jdbcType=JdbcType.VARCHAR),
        @Result(column="del_flag", property="delFlag", jdbcType=JdbcType.CHAR)
    })
    List<ProductSeries> selectByExample(ProductSeriesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table product_series
     *
     * @mbg.generated Mon Jun 25 11:55:32 CST 2018
     */
    @UpdateProvider(type=ProductSeriesSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") ProductSeries record, @Param("example") ProductSeriesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table product_series
     *
     * @mbg.generated Mon Jun 25 11:55:32 CST 2018
     */
    @UpdateProvider(type=ProductSeriesSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") ProductSeries record, @Param("example") ProductSeriesExample example);
}